Get Current URL
AutomatR.Web.GetCurrentURL
The "Get Current URL" activity in AutomatR's Web Activities category retrieves the current URL from a web browser. This activity is useful when you need to capture and utilize the URL during a web automation workflow.
Properties
Name | Description |
---|---|
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Current URL" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1. |
Output | |
URL | Outputs the current URL as a string. Use a string variable to store the retrieved URL for further processing within the workflow. |
How to use:
- Drag and drop the "Get Current URL" activity onto the workflow.
- Optionally, configure the delay based on your requirements.
- Create a string variable to store the current URL (e.g., "currentURL").
- Execute the workflow to obtain the current URL from the web browser.
Example: Consider an example where the "Get Current URL" activity is used to retrieve the URL during a web automation workflow:
Get Current URL:
Delay: 2
URL: currentURL
In this example, the activity waits for 2 seconds (optional) and then retrieves the current URL from the web browser, storing it in the "currentURL" string variable for further use.